package singlelnstance;

public class Test1 {
    public static void main(String[] args) {
        //目标:掌握单例设计模式的写法(饿汉式单例结构)提前创建好对象
        A a1 = A.getObject();
        A a2 = A.getObject();
        System.out.println(a1);
        System.out.println(a2);
    }
}
